// 模块化 路由
// const express = require('express');
import express from 'express'

const router = express.Router() //路由模块

router.get('/login', (req, res) => {
    res.send('login')
})

router.post('/register', (req, res) => {
    res.send('register')
})

// module.exports = router package.json type = commonjs
export default router